<?php include('./templete/public/head.php')?>
<body>

<!--搜索-->
<div class="comm-search">
    <div class="search-input">
        <i class="iconfont icon-sousuo"></i>
        <input type="text" name="" id="title" value="<?php echo input('title')?>" placeholder="请输入您要搜索的建议" onchange="search()"/>
    </div>
</div>
<!--搜索标签-->
<div class="search-tag">
</div>
<hr class="bgcolor"/>

<!--最热提议-->
<div class="index-main hot-proposal">
    <div class="main-content proposal-content">
        <div class="c-list">

            <?php foreach ($list as $v){?>
                <div  class="list-item clearfix">
                    <div class="item-img fl">
                        <img src="<?php echo $v['user_head']?>" class="head-img" />
                    </div>
                    <div class="item-detail">
                        <a href="<?php echo url('jdz/detail',['id'=>$v['id']])?>">
                            <div class="detail1">
                                <p class="title pfbold one-txt-cut">
                                    <?php echo $v['title']?>
                                </p>

                                <?php if((time()-(strtotime($v['add_time'])))<604800){?>
                                    <!--                一个星期内的提议属于最新提议-->
                                    <img src="_images/icon/new-icon.png" class="new-icon" />
                                <?php }?>
                            </div>
                            <div class="tag2">
                                <span><?php echo $v['question_classfy']?></span>
                                <span><?php echo $v['department']?></span>
                            </div>
                            <div class="detail3">
                                <div class="text">
                                    <?php echo $v['problem_content']?>
                                </div>
                            </div>
                        </a>
                        <div class="detail4">
                            <p><?php echo $v['user_name']?>：<?php echo date('Y-m-d H:i:s',strtotime($v['add_time']))?></p>
                        </div>
                    </div>
                </div>
            <?php }?>
        </div>
    </div>
</div>

</body>

</html>